<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ResourceFileList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ResourceFileList" %>
<table>
    <tr>
        <td align="center"> 
            <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium" Text=""/>    
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView runat="server" ID="gvFileList" AutoGenerateColumns="false" OnRowDataBound="gvFileList_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="File Name">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblFileName" Text='<%#DataBinder.Eval(Container,"DataItem.Name") %>'/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Date Upload">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblDateUpdate" Text='<%#DataBinder.Eval(Container,"DataItem.UploadDate") %>'/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Image">
                        <ItemTemplate>
                            <img src='../ImageView.aspx?id=<%#DataBinder.Eval(Container,"DataItem.ID")%>&mdim=100' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Size">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lblSize" Text='<%#DataBinder.Eval(Container,"DataItem.Size") %>'/>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Delete">
                        <ItemTemplate>                                                       
                            <asp:ImageButton runat="server" ID="ibDelete" CommandArgument='<%#DataBinder.Eval(Container,"DataItem.ID") %>' OnClientClick="confirm('Are you sure to delete this file')" ImageUrl="~/Admin/Images/Delete.gif" OnClick="ibDelete_Click" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            
        </td>
    </tr>
</table>
